package com.biz.primus.model.tms.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * SignType
 *
 * @author JKLiues
 * @date 2017/11/21
 */
@Getter
@AllArgsConstructor
public enum SignType {

    All("全部签收", 0),
    REJECT_SIGNED("拒绝签收", 1),
    EXTENSION("延期签收", 2),
    SECTION("部分签收", 3);

    private String description;
    private int value;

    public static boolean validValueIsEffective(SignType value) {
        for (SignType signType : SignType.values()) {
            if(signType == value) {
                return true;
            }
        }
        return false;
    }
}
